<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="完成情况" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script src="/js/popup_ext.js"></script>
<script language="javascript">
    function checkeInput(){
        var mark = document.getElementById("mark").value;
		if(mark == null || mark == ""){
		   ShowAlert('提示框','请输入完成情况',200,100);
		   return false;
		}else if(mark!="" && mark.length>500){
		   ShowAlert('提示框','完成情况字数不能超过500个',200,100);
		   return false;
		}else{
		    return true;
		}
    }
	function doSave(){
		if(checkeInput()){
			ShowConfirm('确认框','确定标记为完成吗？',340,80,"doSaveCallBack()");
		}
	}
	function doSaveCallBack(){
		if(popRetVal!=null){
			var mark = document.getElementById("mark").value;
			window.location="/base/EstablishmentCommunicateComplete.ihtm?id=${id}&mark="+encodeURIComponent(mark);
		}
	}
	function doCancel(){
		parent.ClosePop();
	}
	function showMe(){
		showFormErrorMsg();
	}
</script>
</head>
<body oncontextmenu="return false" scroll="no" onLoad="showMe();" class="sheet modal-dialog" style=" padding-top:15px;">
<div class="sheet-main" id="bodyDiv" style="width:550px;">
	  <div class="sheet-list" style="width:100%">
	    <div class="modal-main search-business">
	    	<div style="width:100%;">
				<c:set var="pageTopTitle" value="完成情况" />
				<%@ include file="../inc/PageTop.jsp"%> 
				<table border="0" cellspacing="1" cellpadding="1" align="center" class="table-0">
					<tr>
				      	<th style="width:15%"><span class="MustInput">*</span>完成情况：</th>
				      	<td style="width:85%">
				      		<textarea style="width:360px;height:80px" id="mark" name="mark"></textarea>
				     	</td>
					</tr>
				</table>
			</div>
	  	</div>
	  </div>
		<div class="modal-buttom" id="buttonDiv">
			<input type="button" class="buttom-a" value="保 存" onClick="doSave();">
			<input type="button" class="buttom-a" value="取 消" onClick="doCancel();">
		</div>
</div>		
</body>
</html>